package com.tianji.learning.mapper;

import com.tianji.learning.entity.LearningLesson;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 学生课程表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-05-25
 */
public interface LearningLessonMapper extends BaseMapper<LearningLesson> {
    /**
     * 本周完成计划数量:用户id and 课程id
     * @return
     */
    Integer selectWeekFinished(@Param("userId") Long userId,@Param("courseId") Long courseId);

    /**
     * 总的计划学习数量:用户id and 课程id
     * @return
     */
    Integer selectWeekTotalPlan(@Param("userId")Long userId,@Param("courseId")Long courseId);
}
